package com.bw.dao;

import com.bw.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/***************************
 FileAction: 硬编码

 CreateTime:2022-08-22 13:46
 Author:Aaking-aline
 ****************************/
public interface UserDao {

	//@Insert("insert into user(username,password,join_time) values(#{username},#{password},#{joinTime})")
	void insertUser(User user);

	@Delete("delete from user where id = #{id}")
	void deleteUser(String id);

	@Select("select * from user")
	List<User> selectAllUser();

}
